home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / src / X11 / wais / ir / irtfiles.h < prev    next >
C/C++ Source or Header  |  1995-05-09  |  2KB  |  70 lines

  1. /* WIDE AREA INFORMATION SERVER SOFTWARE:
  2.    No guarantees or restrictions.  See the readme file for the full standard
  3.    disclaimer.
  4.  
  5.    Brewster@think.com
  6. */
  7.  
  8. /* header for irtfiles.c */
  9.  
  10. #ifndef IRTFILES_H
  11. #define IRTFILES_H
  12.  
  13. #include "cdialect.h"
  14. #include "irfiles.h" /* for database struct */
  15.  
  16. #ifdef __cplusplus
  17. /* declare these as C style functions */
  18. extern "C"
  19.     {
  20. #endif /* def __cplusplus */
  21.  
  22. typedef boolean (boolfunc)();
  23. typedef void (voidfunc)();
  24. typedef long (longfunc)();
  25.  
  26. char *make_joint_word _AP((char *word1, char *word2));
  27.  
  28. typedef long (wordfunc) _AP((char *word, long char_pos,
  29.                  long line_pos, long weight,
  30.                  long doc_id, time_t date,
  31.                  boolean capitalized, database* db,
  32.                  boolean word_position, boolean word_pairs));
  33.  
  34. long map_over_words
  35.   _AP((char* line,long document_id,long weight,long file_position_before_line,
  36.        long* line_length,boolean* newline_terminated,database* db,
  37.        wordfunc wordfunction, boolean word_position, boolean word_pairs));
  38.  
  39. void index_text_file _AP((char* filename,
  40.               boolean (*separator_function)(),
  41.               void (*header_function)(),
  42.               longfunc *date_function,
  43.               void (*put_together_header_function)(), 
  44.               char *type,
  45.               database* db,
  46.               boolean check_for_text_file,
  47.               boolean check_for_file_already_indexed,
  48.               boolean word_position, boolean word_pairs));
  49.  
  50. boolean directoryp _AP ((char *file));
  51.  
  52. boolean filep _AP((char* file));
  53.  
  54. void index_directory _AP ((char *file,
  55.                boolfunc *separator_function,
  56.                voidfunc *header_function,
  57.                longfunc *date_function,
  58.                voidfunc *finish_header_function, 
  59.                char *type,
  60.                database *db,
  61.                boolean check_for_text_file,
  62.                boolean check_for_file_already_indexed,
  63.                boolean word_position, boolean word_pairs));
  64.  
  65. #ifdef __cplusplus
  66.     }
  67. #endif /* def __cplusplus */
  68. #endif /* ndef IRTFILES_H */
  69.  
  70.